package com.zhn.evsi.client;

import com.alibaba.fastjson.JSONObject;
import com.dtflys.forest.annotation.BaseRequest;
import com.dtflys.forest.annotation.Request;
import com.dtflys.forest.annotation.Retry;
import com.dtflys.forest.annotation.Var;
import com.zhn.evsi.interceptor.TokenInterceptor;

import java.util.List;

@BaseRequest(baseURL = "${eveData}${eveDataSns}")
@Retry(maxRetryCount = "3", maxRetryInterval = "1000")
public interface BookMarksClient {

    /**
     * 书签
     * */
    // https://esi.evetech.net/latest/characters/2119634223/bookmarks/?datasource=tranquility&page=1&token=1%7CCfDJ8LAoxfuX0s1GlKTIRpDOTgoxknjsk%2Fp7FSfdPm7gd%2B568DHOOREHnVglf4bgz1P3C4Nn%2FOORjfLiuuxqww%2BzfofrfO4gMee26LPxJG85IOSrvfw7OyPVQwPjZCtt%2FfIgdSdspVe6GM793kFzolJ154qDAJiCO8mbPgCAYp%2BUzqMy
    @Request(
            url = "/characters/{characters}/bookmarks/?datasource=tranquility&page={page}",
            type = "GET",
            interceptor = TokenInterceptor.class
    )
    List<JSONObject> bookmarks(@Var("characters") Long characters, @Var("page") Integer pageNum);


    /**
     * 书签
     * */
    // https://esi.evetech.net/latest/characters/2119634223/bookmarks/folders/?datasource=tranquility&page=1&token=1%7CCfDJ8LAoxfuX0s1GlKTIRpDOTgoxknjsk%2Fp7FSfdPm7gd%2B568DHOOREHnVglf4bgz1P3C4Nn%2FOORjfLiuuxqww%2BzfofrfO4gMee26LPxJG85IOSrvfw7OyPVQwPjZCtt%2FfIgdSdspVe6GM793kFzolJ154qDAJiCO8mbPgCAYp%2BUzqMy
    @Request(
            url = "/characters/2119634223/bookmarks/folders/?datasource=tranquility&page=1",
            type = "GET",
            interceptor = TokenInterceptor.class
    )
    List<JSONObject> folders(@Var("characters") Long characters, @Var("page") Integer pageNum);
}
